<?php
function widget_comment($setting,&$smarty){
    $comment = kernel::single('b2c_message_disask');
    $setting['content_length']=$setting['content_length']?$setting['content_length']:'200';
    $result=$comment->getTopComment($setting['limit']);

    $imageDefault = app::get('image')->getConf('image.set');
    $result[0]['defaultImage'] = $imageDefault['S']['default_image'];
    return $result;
}
